package com.zkflzl.entity;

import com.zkflzl.StarAct;

public class Star implements StarAct {
    String name;
    @Override
    public void sing(String name) {
        System.out.println(this.name + "在唱" + name + "歌");
    }

    @Override
    public void dance() {
        System.out.println(this.name + "在跳舞");
    }

    public String getName() {
        return name;
    }
    public Star(String name) {
        this.name = name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
